package com.swak.storage;

import java.io.File;

import com.swak.fx.support.ui.UI.Conts;

/**
 * 下载目录
 * 
 * @author 618lf
 */
public class DownloadStorage extends AbstractStorage {
	private static DownloadStorage ME = new DownloadStorage();

	public static DownloadStorage New() {
		return ME;
	}

	private final File storagePath;

	public DownloadStorage() {
		this.storagePath = new File(tempPath, Conts.DownloadPath);
		if (!this.storagePath.exists()) {
			this.storagePath.mkdirs();
		}
	}

	@Override
	protected File getStoragePath() {
		return storagePath;
	}
}
